UTT SSL x FISHER MATRIX EA  v4.0  -  MT5 EXPERT ADVISOR, VIBE CODED WITH CLAUDE AI
==================================================================================
UltimateTrading.tools  |  https://ultimatetrading.tools
Video (Part 2 - making it better with prompts): https://youtu.be/OqU-FD7uGZ4

This EA was built entirely by prompting Claude AI. The two prompts that took it
from v3.0 to v4.0 are in the Prompts folder, so you can follow the video and
keep improving it yourself.


WHAT IS IN THIS ZIP
-------------------
  MQL5\Experts\UTT_SSL_Fisher_Matrix_EA_v4.0.mq5      the EA (full source)
  MQL5\Indicators\SSL_Reversal_Breakout_Matrix_MT5.mq5  signal indicator
  MQL5\Indicators\Forex_Momentum_Universal.mq5          Fisher confirmation
  MQL5\Indicators\README_SSL_Reversal_Breakout_Matrix.txt
  Common\Files\UTT_news.csv        2026 NFP / CPI / FOMC for the news filter
  Prompts\Prompt 1 - Seven Features (v3.0 to v3.1).txt
  Prompts\Prompt 2 - Winning Settings (v3.1 to v4.0).txt

The indicators are also free on the website:
  SSL Reversal & Breakout Matrix  https://ultimatetrading.tools/product/ssl-reversal-breakout-matrix-mt5/
  Forex Momentum Universal (MT5)  https://ultimatetrading.tools/product/forex-momentum-universal-mt5/


INSTALL  (about 5 minutes)
-------
  1. MT5 > File > Open Data Folder > MQL5.
  2. Copy the two indicator .mq5 files into  MQL5\Indicators
     and the EA into  MQL5\Experts.
  3. Open each file in MetaEditor and press Compile (F7) - indicators first,
     then the EA. Set the build target to "X64 Regular" if MetaEditor offers
     a choice. You want "0 errors".
  4. Refresh the Navigator, drag the EA onto ONE chart, tick
     "Allow Algo Trading" and switch Algo Trading on in the toolbar.
  5. Do not add the SSL Matrix to that chart yourself: the EA shows its own
     copy of both indicators, and two copies share object names.

  File names: the EA looks for "SSL_Reversal_Breakout_Matrix_Deriv_Results"
  first (the author's own build) and then the free website file
  "SSL_Reversal_Breakout_Matrix_MT5". The Fisher is found as
  "Forex_Momentum_Universal" or as the website's "Forex Momentum Universal".
  The Experts tab prints a line when it falls back to the website file.

  NEWS FILTER IN THE STRATEGY TESTER
  Copy UTT_news.csv into  Terminal\Common\Files  (File > Open Data Folder,
  go up one level, then Common\Files). Live charts use the MT5 economic
  calendar instead, with the CSV as a fallback.


HOW IT TRADES  (closed candles only, one decision per bar)
-------------
  1 SIGNAL   the SSL Reversal & Breakout Matrix prints a confirmed BUY or
             SELL: an SSL flip backed by RSI, DMI/ADX and channel expansion,
             scored 0-100 and graded A+ to D. Every grade trades by default.
  2 CONFIRM  the Fisher (Forex Momentum Universal) must sit on the signal
             side of zero within 2 bars, while the SSL trend still agrees.
  3 FILTERS  direction, spread vs ATR, daily loss cap (5%), max 2 signals
             open at once - plus the v4.0 weekday filter.
  4 ORDER    market order on the first tick of the next bar.

  DEFAULT TRADE PLAN (points)
    Each signal opens up to 5 trades. Stop loss 2000 points.
    3 trades take profit at TP1 (+2000 points).
    2 runners move to break-even +0.1R at TP1, trail 1000 points behind
    price from +2500 points, and aim for the 4000 point final target.
    An SSL flip does not close trades (it is often only a retracement).

  SIZING
    Lots = risk % (1% per trade) of the lower of balance and equity, divided
    by the real loss per lot at the stop (OrderCalcProfit), so it is correct
    on Deriv synthetics, Forex and Gold. A signal's trades are cut back if
    their total risk would pass 10% or free margin runs out.
    Points are symbol-dependent: check SL / TP distances on each market.


WHAT v4.0 CHANGES
-----------------
  The weekday filter is ON: no new entries after Friday 12:00 server time.
  Open trades keep running ("close all before the weekend" stays OFF).
  On 24/7 Deriv synthetics entries resume at Saturday 00:00.
  Every other feature is OFF, ready to test one at a time.


THE OTHER FEATURES  (all OFF - switch on in the inputs)
------------------
  v3.1 - 1 Sessions        Asia / London / New York switches (server hours)
                           and a blocked hh:mm window. The dashboard always
                           shows trades and P/L per session.
  v3.1 - 2 News filter     no entries 45 min before / after high-impact USD
                           news. Dashboard: next event + countdown,
                           NEWS BLOCK while active.
  v3.1 - 3 End of day      no new signals after 20:00; option to close
                           profitable runners 15 min before the daily break
                           (TP1 trades keep their TP, losers keep their stop).
  v3.1 - 4 Weekdays        ON in v4.0 (see above). Sunday-Friday switches and
                           an optional close-all before the Friday close.
  v3.1 - 5 Risk / signal   risk % for the whole signal, split across its
                           trades (0 = off, per-trade risk is used).
  v3.1 - 6 Anti-streak     after a losing signal the next one trades at X%
                           size (100 = off) until a signal wins. Read from the
                           deal history, so it survives a restart. At 0.01
                           lots it cuts the number of trades instead.
  v3.1 - 7 Runners         remove the take profit on runners once their stop
                           is at break-even.

  The entry filters only block NEW entries. Only "close runners before the
  break" and "close all before the weekend" close trades, and only when on.


TESTING TIP
-----------
  Press Reset on the Inputs tab after updating, so the new groups load.
  Run the defaults once, then turn on ONE feature at a time and compare the
  reports. Keep what improves profit factor and drawdown together.


LICENCE
-------
  EA: free to use, study and modify for your own trading.
  SSL Reversal & Breakout Matrix: MQL5 port of an open-source Pine Script,
  Mozilla Public License 2.0 - see its README and file header. The EA only
  calls it through iCustom() and is a separate file.


SUPPORT
-------
  Telegram channel : https://t.me/Ultimate_Trading_Tools
  Telegram direct  : @ubinaryscripts101


RISK NOTICE
-----------
  Educational tool, not financial advice. Backtest results do not guarantee
  future results. Trading synthetic indices, forex and gold carries a high
  risk of loss. Run it on a demo account first.
